package com.example.webmodule.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/web/openapi")
public class OpenApiController {
    @GetMapping("/getOpenApi")
    public String getOpenApi() throws Exception {
        return "openapi";
    }

    @GetMapping("/getOpenApi2")
    public String getOpenApi2() throws Exception {
        return "openapi2";
    }

    @PostMapping    ("/getOpenApi")
    public String postOpenApi() throws Exception {
        return "openapi";
    }

    @PutMapping    ("/getOpenApi")
    public String putOpenApi() {
        return "openapi";
    }
}
